import { request } from '../utils/axios.js'

// 云电脑列表
export const getComputerList = (data) => request.post('/api/cpc/v1/computer/list', data)

// 云游戏 -- 标签列表
export const getTagList = (data) => request.post('/api/cpc/v1/tag/list', data)

// 云游戏 --  按标签查询游戏列表
export const getGameListByTag = (data) => request.post('/api/cpc/v1/tag/list-game', data)


// 校验连接资格
export const verifyConnectionQualification = (data) => request.post('/api/cpc/v1/computer/session/verify-qualification', data)

// 申请连接会话
export const applyConnectionSession = (data) => request.post('/api/cpc/v1/computer/session/apply', data)

// 启动连接会话
export const startConnectionSession = (data) => request.post('/api/cpc/v1/computer/session/start', data)

// 结束当前正在连接的会话
export const destroyConnectionSession = (data) => request.post('/api/cpc/v1/computer/session/destroy', data)


